import Vue from 'vue'
import VueRouter from 'vue-router'

// config
import { basicsRouterMap } from './router-map'

Vue.use(VueRouter)

const routerCfg = {
  routes: basicsRouterMap,
  mode: 'history',
  scrollBehavior: () => ({ y: 0 })
}

const router = new VueRouter(routerCfg)

export default router
